import createSpan from './createSpan'
import createDiv from './createDiv'
import createInput from './createInput'
export default class factory{
    createEvent(data){
        switch (data.tagName) {
            case 'span': return new createSpan(data);
            case 'div': return new createDiv(data); 
            case 'input': return new createInput(data); 
            default : return new createSpan(data);
        }
    }
}